﻿@model RBT.Models.RemoveEmployee

@{
    ViewBag.Title = "Remove Employee";
}

<h2>Remove Employee</h2>

<p>
    Key in the employees ID to remove it and the user from the database
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Employee removal unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Employee</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.EmployeeId)
            </div>

            <div class="editor-field">
                @Html.TextBoxFor(m => m.EmployeeId)
                @Html.ValidationMessageFor(m => m.EmployeeId)
            </div>

            <p>
                <input type="submit" value="Remove" />
            </p>
        </fieldset>
    </div>
}

